package com.itheima.health.service;

import com.itheima.health.dto.SetmealDto;
import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Setmeal;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * @author spt
 * @description 套餐SERVICE
 * @date 2019/9/26
 **/
public interface SetMealService {

    /**
     * 添加套餐
     * @param setmeal
     * @param checkgroupIds
     */
    void add(Setmeal setmeal, Integer[] checkgroupIds);

    /**
     * 分页查询
     * @param queryPageBean
     * @return
     */
    PageResult findPage(QueryPageBean queryPageBean);


    long getNumOfImg(String rubbishImg);

    List<Setmeal> findAll();



    /**
     * 根据id查询数据
     * @param id
     * @return
     */
    Setmeal selectId(Integer id);

    Set<String> getnames();

    ArrayList<SetmealDto> getnamesandshu();

    HashMap<String, Object> getyuefen();
}
